package com.zgh.controller;

import com.zgh.domain.Result;
import com.zgh.service.BbsCommentService;
import com.zgh.service.BlogCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/blogComment")
public class BlogCommentController {
    @Autowired
    private BlogCommentService blogCommentService;

    @RequestMapping(value = "/thumb/{id}/{count}",method = RequestMethod.GET)
    public Result thumb(@PathVariable String id, @PathVariable String count) {
        // System.out.println(id+count);
        blogCommentService.thumb(id,count);
        return new Result(true,"点赞成功",null);
    }
}
